#pragma once
#include "tinyXml\tinyxml.h"

struct VerifyData{
	TCHAR lpSrc[MAX_PATH];
	TCHAR lpDst[MAX_PATH];
	TCHAR lpLocalData[MAX_PATH];
	bool bOverWrite;
	VerifyData(){
		lpSrc[0]=_T('\0');
		lpDst[0]=_T('\0');
		lpLocalData[0]=_T('\0');
		bOverWrite = false;
	}
};

class CDataMangr
{
private:
	CDataMangr(void);
	~CDataMangr(void);

public:
	static CDataMangr* GetDataMangrInst();
	BOOL Init(LPCTSTR lpCfgFile);

	BOOL HasMoreData();
	BOOL NextData(VerifyData& data);
private:
	TiXmlDocument *m_pXmlDoc;
	TiXmlNode *m_pNodeData;

	CRITICAL_SECTION m_pCriticalSection;
	BOOL m_bMoreData;
};

